{dynamic}
    {load_rating}
    {if $rating}
        <div id="pageRating">
        {if $rating.rated}
            <dt>{#rating#}</dt><dd>
                <span class="star_{if $rating.rating >= 1}sel{else}off{/if}" style="cursor: default;">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <span class="star_{if $rating.rating >= 2}sel{else}off{/if}" style="cursor: default;">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <span class="star_{if $rating.rating >= 3}sel{else}off{/if}" style="cursor: default;">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <span class="star_{if $rating.rating >= 4}sel{else}off{/if}" style="cursor: default;">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <span class="star_{if $rating.rating >= 5}sel{else}off{/if}" style="cursor: default;">&nbsp;&nbsp;&nbsp;&nbsp;</span>
            </dd>
        {else}
            <script language="JavaScript">
                var shine = new Array();
                shine[1] = {if $rating.rating >= 1}1{else}0{/if};
                shine[2] = {if $rating.rating >= 2}1{else}0{/if};
                shine[3] = {if $rating.rating >= 3}1{else}0{/if};
                shine[4] = {if $rating.rating >= 4}1{else}0{/if};
                shine[5] = {if $rating.rating >= 5}1{else}0{/if};        
                var rated = false;
            </script>
            <dt>{#rateMe#}</dt>
            <dd>
                <span class="star_{if $rating.rating >= 1}sel{else}off{/if}" id="shine_1" onMouseover="shineMe(1);" onMouseout="unShine();" onClick="rateMe(1,{$rating.pid},{$rating.ptype})">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <span class="star_{if $rating.rating >= 2}sel{else}off{/if}" id="shine_2" onMouseover="shineMe(2);" onMouseout="unShine();" onClick="rateMe(2,{$rating.pid},{$rating.ptype})">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <span class="star_{if $rating.rating >= 3}sel{else}off{/if}" id="shine_3" onMouseover="shineMe(3);" onMouseout="unShine();" onClick="rateMe(3,{$rating.pid},{$rating.ptype})">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <span class="star_{if $rating.rating >= 4}sel{else}off{/if}" id="shine_4" onMouseover="shineMe(4);" onMouseout="unShine();" onClick="rateMe(4,{$rating.pid},{$rating.ptype})">&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <span class="star_{if $rating.rating >= 5}sel{else}off{/if}" id="shine_5" onMouseover="shineMe(5);" onMouseout="unShine();" onClick="rateMe(5,{$rating.pid},{$rating.ptype})">&nbsp;&nbsp;&nbsp;&nbsp;</span>
            </dd>
        {/if}
        </div>
    {/if}
{/dynamic}